package com.city.service.party;

import com.city.domain.party.PartyFabroad;

import java.util.List;

/**
 * @deprecation: 干部出国申请
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
public interface PartyFabroadService {
   List<PartyFabroad> findAll();

   //分页查询
   List<PartyFabroad> findByPage(Integer page, Integer limit);

   //数量
   long count();

   //根据id查询
   PartyFabroad findById(int id);

   //根据id删除
   void delete(int id);

   //根据目的地模糊查询
   List<PartyFabroad> findAllByDestinationAndPage(String destination, Integer page, Integer limit);

   //统计次数
   long countDestination(String destination);

   //根据名字模糊查询
   List<PartyFabroad> findAllByNameAndPage(String name, Integer page, Integer limit);

   long countName(String name);

   //根据目的地和姓名模糊查询
   List<PartyFabroad> findAllByDestinationAndNameAndPage(String destination,String name, Integer page, Integer limit);

   long countDestinationAndName(String destination,String name);





}
